package org.darkforest.common.services;

import org.darkforest.model.Member;

import java.util.Map;

/**
 * checkout
 *
 * @auth bingo
 * @create 2017-11-28-15:52
 */
public interface CheckoutService {


    /**
     * 计算商品总价以及总运费
     * @param member
     * @param addressId
     * @param qrcodeNum
     * @param buyType
     * @param cartChannel
     * @return
     */
    Map orderCheckout(Member member, Integer addressId, Integer qrcodeNum, Integer buyType, Integer cartChannel);

    /**
     * 根据不同的店铺id计算对应商品的运费以及商品总价
     * @param member
     * @param addressId
     * @param codeNum
     * @param postType
     * @param cartChannel
     * @param storeId
     * @return
     */
    Map orderCheckoutBySimpleStore(Member member, Integer addressId, Integer codeNum, Integer postType, Integer cartChannel, Integer storeId);
}
